<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <th:block th:include="include :: header('系统通知公告详情')"/>
  <!--<th:block th:include="include :: select2-css" />-->
  <link th:href="@{/ajax/libs/summernote/summernote.css?v=0.8.18}" rel="stylesheet"/>
  <link th:href="@{/ajax/libs/bootstrap-switch/bootstrap-switch.min.css}" rel="stylesheet">
  <link th:href="@{/ajax/libs/bootstrap-tagsinput/tagsinput.css}" rel="stylesheet">
  <link th:href="@{/ajax/libs/jQuery-ui/jquery-ui.css}" rel="stylesheet">
  <link th:href="@{/css/iconfont/iconfont.css}" rel="stylesheet">
  <link th:href="@{/css/style.css}" rel="stylesheet">
  <link rel="stylesheet" type="text/css" th:href="@{/ajax/libs/qxEasyUI/themes/default/easyui.css}">

</head>
<style>
  .bootstrap-tagsinput > input {
    display: none;
  }
</style>

<body style="background-color: #F4F6FA">
<div class="main-content" style="margin: 0;padding: 0">

  <form id="form-user-add" class="form-horizontal" th:object="${saffiche}" style="background-color: #F4F6FA">

    <div class="col-sm-12" style="display: flex;justify-content: center">
      <div class="col-sm-10 entering-page">
        <!--系统公告-->
        <div class="col-sm-12">
          <div class="col-sm-12" style="display: flex;justify-content: space-between">
            <div class="tltieBoder">
              <div class="blueBorder"></div>
              <h4 style="margin:0 0 0 10px">系统公告</h4>
            </div>
          </div>
          <!--标题、类别-->
          <div class="form-group col-sm-12">
            <!--工单编号-->
            <label class="col-sm-3 control-label entering-pd">标题：</label>
            <div class="col-sm-5">
              <input th:field="*{ntcTitle}" placeholder="请输入公告标题" class="form-control" type="text"
                     required="required">
            </div>
            <label class="col-sm-2 control-label entering-pd">类别：</label>
            <div class="col-sm-2">
<!--              <select name="sortCode" id="sortCode"-->
<!--                      th:with="ntcTypes=${@commonServiceImpl.findNtcTypes()}"-->
<!--                      onchange="dropChgSendTextOnly(this,'sortName');"-->
<!--                      class="form-control formSelect">-->
<!--                <th:block th:each="item : ${ntcTypes}">-->
<!--                  <option th:text="${item['CSText']}" th:value="${item['CSValue']}"-->
<!--                          th:selected="${item['CSValue'] == saffiche.sortCode}"></option>-->
<!--                </th:block>-->
<!--                <input type="hidden" th:field="*{sortName}" id="sortName"/>-->
<!--              </select>-->
              <select name="sortCode" id="sortCode"
                      onchange="dropChgSendTextOnly(this,'sortName');"
                      class="form-control formSelect">
                <option value="-1">请选择</option>
                <option value="11" th:selected="${'11' == saffiche.sortCode}">普通</option>
                <option value="12" th:selected="${'12' == saffiche.sortCode}">重要</option>
                <option value="21" th:selected="${'21' == saffiche.sortCode}">紧急</option>
              </select>
              <input type="hidden" name="sortName" id="sortName" value="普通"/>
            </div>
          </div>
          <!--通知内容-->
          <div class="form-group col-sm-12">
            <label class="col-sm-3 control-label entering-pd">通知内容：</label>
            <div class="col-sm-9">
              <div class="ibox float-e-margins">
                <div class="ibox-content no-padding">
                  <textarea th:field="*{ntcContent}" class="summernote">

                  </textarea>
                </div>
              </div>
            </div>
          </div>
          <!--来自、发布时间-->
          <div class="form-group col-sm-12">
            <!--来自-->
            <label class="col-sm-3 control-label  entering-pd">来自：</label>
            <div class="col-sm-3">
              <input th:field="*{fromDept}" class="form-control " type="text" />
              <input type="hidden" th:field="*{issueUser}" />
            </div>
            <!--发布时间-->
            <label class="col-sm-3 control-label  entering-pd">发布时间：</label>
            <div class="col-sm-3">
              <input th:field="*{issueTime}" class="form-control " type="text"/>
            </div>
          </div>
          <!-- 备注-->
          <div class="form-group col-sm-12">
            <label class="col-xs-3 control-label entering-pd">备注：</label>
            <div class="col-xs-9">
              <input th:field="*{remark}" placeholder="请输入" class="form-control " type="text"/>
            </div>
          </div>
        </div>
        <!--按钮-->
        <div class="col-sm-12 entering-bt" style="justify-content: center;margin-top: 10px">
          <button type="button" class="btn btn-sm btn-warning" onclick="closeItem()">关闭
          </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        </div>
      </div>
    </div>
</div>

</form>
</div>

<script th:src="@{/ajax/libs/layui/laydate.js}"></script>
<th:block th:include="include :: footer"/>
<!--<th:block th:include="include :: select2-js" />-->
<script th:src="@{/ajax/libs/summernote/summernote.min.js?v=0.8.18}"></script>
<script th:src="@{/ajax/libs/summernote/summernote-zh-CN.js?v=0.8.18}"></script>
<script th:src="@{/ajax/libs/bootstrap-tagsinput/tagsinput.min.js}"></script>
<script th:src="@{/ajax/libs/bootstrap-switch/bootstrap-switch.min.js}"></script>
<script th:src="@{/ajax/libs/jQuery-ui/jquery-ui.js}"></script>
<script th:src="@{/ajax/libs/qxEasyUI/jquery.easyui.min.js}"></script>
<script th:src="@{/js/telsendorder.js}"></script>
<script th:src="@{/js/teladd.js}"></script>

<script>
  var prefix = "/system/mInterior/cfNotice";

  $(document).ready(function () {
    $('.summernote').summernote({
      lang: 'zh-CN',
      tabsize: 2,
      height: 150//高度
    });
  });

</script>
</body>
</html>

